<template>
	<div class="setting-item-footer">
		<span>{{prompt}}</span>
		<div class="sub-btn">
			<el-button type="primary" :loading="loading" @click="subSet">{{msg}}</el-button>
		</div>
	</div>
</template>
<script>
	export default {
		props: {
			prompt: {
				type: String,
				default: ''
			},
			loading: {
				type: Boolean,
				default: false
			},
			msg: {
				type: String,
				default: '保存并发布'
			}
		},
		methods: {
			subSet() {
				this.$emit('saveChange')
			}
		}
	}
</script>